package com.exp.bookhouse.service.impl;

import com.exp.bookhouse.mapper.WebSettingMapper;
import com.exp.bookhouse.pojo.WebSetting;
import com.exp.bookhouse.service.WebSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class WebSettingServiceImpl implements WebSettingService {

    @Autowired
    private WebSettingMapper webSettingMapper;

    @Override
    public List<WebSetting> queryWebSetting() {
        return webSettingMapper.selectList(null);
    }

    @Override
    public void updateViews() {
        webSettingMapper.updateViews();
    }
}
